{%include file="m.index.header.tpl.php"%}
<!--头部 end-->
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-right:10%;">
        <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=activitys.add&activitys_type={%$activitys_type%}" style="width:30%">增加</a></div>
    </div>
    <!--row  end-->
    <div class="row" style="margin-top:10px;">
        <form action="" method="get">
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <div class="col-sm-10">
                        <div class="form-group">
                            <label for="exampleInputEmail1">标题:</label>
                            <input type="text" class="form-control" value="{%$activitys_title%}" name="activitys_title">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <div class="col-sm-10">
                        <div class="form-group">
                            <label for="exampleInputEmail1">开始时间:</label>
                            <input type="text" class="form-control" value="{%$from%}" id="datepicker" name="from">

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <div class="col-sm-10">
                        <div class="form-group">
                            <label for="exampleInputEmail1">结束时间:</label>
                            <input type="text" class="form-control" value="{%$to%}" id="datepicker2" name="to">

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 distance text-center" >
                <input type="hidden" name="a" value="activitys.list">
                <input type="hidden" name="activitys_type" value="{%$activitys_type%}">
                <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
            </div>
        </form>
    </div>
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        {%foreach from=$activitys_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <td>标题</td>
                <td><a href="index.php?a=activitys.info&activitys_type={%$activitys_type%}&activitys_id={%$value.activitys_id%}">{%$value.activitys_title%}</a></td>
            </tr>
            <tr>
                <td>提交人</td>
                <td>{%$value.user_name%}</td>
            </tr>
            <tr>
                <td>提交时间</td>
                <td>{%$value.create_time%}</td>
            </tr>

            <tr>
                <td>操作</td>
                <td>
                    <a href="index.php?a=activitys.update&activitys_type={%$activitys_type%}&activitys_id={%$value.activitys_id%}" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i>修改</a>

                </td>
            </tr>
        </table>
        {%/foreach%}
    </div>
</div>
<!--container  end-->

<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->

<!--日历-->
<script>
    $(function() {
        $( "#datepicker" ).datepicker({

            changeMonth: true,
            changeYear: true

        });

        $( "#datepicker2" ).datepicker({

            changeMonth: true,
            changeYear: true

        });
    });
</script>
</body>
</html>
